package com.springboot.common.convert;

import com.alibaba.fastjson.JSONArray;
import com.springboot.model.convert.Order;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: TongRui乀
 * @Date: 2020-04-12 15:08
 * @description：
 */
@Component
public class String2ListConvert implements Converter<String, List<Order>> {
    @Override
    public List<Order> convert(String s) {

        return JSONArray.parseArray(s, Order.class);
    }
}
